import Vue from 'vue'
import Router from 'vue-router'
import MainPage from '@/components/mainPage'
import MovieClips from "../components/movieClips/movieClips"
import Circle from "../components/circle/circle"
import DynamicIndex from "../components/dynamicState/dynamicIndex"
import Mine from "../components/mine/mine"

//DynamicState子组件
import DynamicState from "../components/dynamicState/firstComponents/dynamicState"
import DynaComment from '../components/dynamicState/firstComponents/dynaComment'
import PrivateLetter from '../components/dynamicState/firstComponents/privateLetter'
import SystemInfo from '../components/dynamicState/firstComponents/systemInfo'
import GuanZhu from '../components/dynamicState/firstComponents/guanZhu'
import BoFang from '../components/dynamicState/firstComponents/boFang'

//mine子组件
import MineIndex from '../components/mine/firstComponents/mineIndex'
import RenZheng from '../components/mine/firstComponents/renZheng'
import MineReset from '../components/mine/firstComponents/mineReset'
import ResetIndex from "../components/mine/firstComponents/secondReset/resetIndex"
import Recompose from "../components/mine/firstComponents/secondReset/recompose"
import Bound from "../components/mine/firstComponents/secondReset/bound"
import Person from "../components/mine/firstComponents/person"
import PersonIndex from "../components/mine/firstComponents/secondReset/personIndex"
import PersonName from "../components/mine/firstComponents/secondReset/personName"
import PersonSignature from "../components/mine/firstComponents/secondReset/personSignature"
import Suggest from "../components/mine/firstComponents/suggest"
import GuanYu from "../components/mine/firstComponents/guanYu"

//片花路由配置
import MovieClipIndex from '../components/movieClips/movieClipIndex';
import Login from '../components/movieClips/pages/login';
import Register from '../components/movieClips/pages/register';
import Comment from '../components/movieClips/pages/details/comment';
import Summary from '../components/movieClips/pages/details/summary';
import Anthology from '../components/movieClips/pages/details/anthology';
import Detail from '../components/movieClips/pages/detail';
import ForgetPassword from '../components/movieClips/pages/forgetPassword';
import SearchIndex from '../components/movieClips/pages/searchIndex';
import SearchFilm from '../components/movieClips/pages/search/searchFilm';
import SearchPeople from '../components/movieClips/pages/search/searchPeople';
import SearchActor from '../components/movieClips/pages/search/searchFilm/searchActor';
import SearchCast from '../components/movieClips/pages/search/searchFilm/searchCast';
import SearchFilmName from '../components/movieClips/pages/search/searchFilm/searchFilmName';
import Master from '../components/movieClips/pages/search/searchPeople/master';
import Nickname from '../components/movieClips/pages/search/searchPeople/nickname';
import OfansId from '../components/movieClips/pages/search/searchPeople/ofansId';
import ActorDetail from '../components/movieClips/pages/search/searchFilm/details/actorDetail';

//圈子组件
import CircleComment from "../components/circle/circlecomponents/circlecomment"
import CircleHot from "../components/circle/circlecomponents/circlehot"
import CircleCare from "../components/circle/circlecomponents/circlecare"
import CircleMainBody from "../components/circle/circlecomponents/circlemainbody"
import Persondetails from "../components/circle/circlecomponents/persondetails"
import Publishcircle from "../components/circle/circlecomponents/publishcircle"
import Publishaddress from "../components/circle/circlecomponents/publishaddress"


Vue.use(Router)

export default new Router({
	linkActiveClass:"active",
	mode:"history",
  routes: [
    {
      path: '/',
      name: 'mainPage',
      component: MainPage,
      redirect:"/movieClipIndex",
      children:[
	      {
	      	path: 'movieClipIndex',
		    name: 'movieClipIndex',
		    component: MovieClipIndex,
		    redirect:'movieClipIndex/movieClips',
		    children:[
			    {
			    	path:'movieClips',
			        name:'movieClips',
			        component:MovieClips,
			    },
			    {
			    	path: 'actorDetail',
				    name: 'actorDetail',
				    component: ActorDetail,
		    	},
			    {
			    	path:'searchIndex',
			        name:'searchIndex',
			        component:SearchIndex,
			        redirect:'searchIndex/searchFilm',
			        children:[
			            {
					    	path: 'searchFilm',
						    name: 'searchFilm',
						    component: SearchFilm,
						    redirect:'searchFilm/searchActor',
						    children:[
						        {
							    	path: 'searchActor',
								    name: 'searchActor',
								    component: SearchActor,
							    },
							    {
							    	path: 'searchFilmName',
								    name: 'searchFilmName',
								    component: SearchFilmName,
							    },
							    {
							    	path: 'searchCast',
								    name: 'searchCast',
								    component: SearchCast,
							    }
						    ]
					    },
					    {
					    	path: 'searchPeople',
						    name: 'searchPeople',
						    component: SearchPeople,
						    redirect:'searchPeople/nickname',
						    children:[
						        {
							    	path: 'master',
								    name: 'master',
								    component: Master,
							    },
							    {
							    	path: 'nickname',
								    name: 'nickname',
								    component: Nickname,
							    },
							    {
							    	path: 'ofansId',
								    name: 'ofansId',
								    component: OfansId,
							    }
						    ]
					    }
			        ]
			    },
			    {
	            	path: 'detail',
				    name: 'detail',
				    component: Detail,
				    redirect:'detail/comment',
				    children:[
				        {
					    	path: 'comment',
						    name: 'comment',
						    component: Comment,
					    },
					    {
					    	path: 'summary',
						    name: 'summary',
						    component: Summary,
					    },
					    {
					    	path: 'anthology',
						    name: 'anthology',
						    component: Anthology,
					    }
				    ]
			    },
	            {
			    	path: 'login',
				    name: 'login',
				    component: Login,
		    	},
		    	{
			    	path: 'forgetPassword',
				    name: 'forgetPassword',
				    component: ForgetPassword,
		    	},
			    {
			    	path: 'register',
				    name: 'register',
				    component: Register,
			    },
		    ]
	      },
	      {
	      	  path: 'circle',
		      name: 'circle',
		      component: Circle,
		      redirect:"/circleComment",
		    children:[
			    {
		    		path: '/circleComment',
				    name: 'circleComment',
				    component: CircleComment
		    	},
		    	{
		    		path: '/circleHot',
				    name: 'circleHot',
				    component: CircleHot
		    	},
		    	{
		    		path: '/circleCare',
				    name: 'circleCare',
				    component: CircleCare
		    	},
		    	{
		    		path: '/circleMainBody',
				    name: 'circleMainBody',
				    component: CircleMainBody
		    	},
		    	{
		    		path: '/persondetails',
				    name: 'persondetails',
				    component: Persondetails
		    	},
		    	{
		    		path: '/publishcircle',
				    name: 'publishcircle',
				    component: Publishcircle
		    	},
		    	{
		    		path: '/publishaddress',
				    name: 'publishaddress',
				    component: Publishaddress
		    	}
		    ]
		      
	      },
	      {
	      	  path: 'dynamicIndex',
		      name: 'dynamicIndex',
		      component: DynamicIndex,
		      redirect:"dynamicIndex/dynamicState",
		      children:[
		          {
			       	 path: 'dynamicState',
					 name: 'dynamicState',
					 component: DynamicState,
			       },
			      {
			      	path: 'dynaComment',
				    name: 'dynaComment',
				    component: DynaComment 
			      },
			      {
			      	path: 'privateLetter',
				    name: 'privateLetter',
				    component: PrivateLetter 
			      },
			      {
			      	path: 'systemInfo',
				    name: 'systemInfo',
				    component: SystemInfo 
			      },
			       {
			      	path: 'guanZhu',
				    name: 'guanZhu',
				    component: GuanZhu 
			      },
			      {
			      	path: 'boFang',
				    name: 'boFang',
				    component: BoFang 
			      }
			      
			      
		      ]
	      },
	      {
	      	  path: 'mine',
		      name: 'mine',
		      component: Mine,
		      redirect:"mine/mineIndex",
		      children:[
		         {
		         	path: 'mineIndex',
				    name: 'mineIndex',
				    component: MineIndex,
		         },
			    {
			    	path: 'renZheng',
				    name: 'renZheng',
				    component: RenZheng,
			    },
			    {
			    	path: 'person',
				    name: 'person',
				    component: Person,
				    redirect:"person/personIndex",
				    children:[
				      {
				      	path: 'personIndex',
					    name: 'personIndex',
					    component: PersonIndex,
				      },
				      {
				      	path: 'personName',
					    name: 'personName',
					    component: PersonName,
				      },
				      {
				      	path: 'personSignature',
					    name: 'personSignature',
					    component: PersonSignature,
				      },
				      
				      
				    ]
			    },
			    {
			      	path: 'suggest',
				    name: 'suggest',
				    component: Suggest,
			    },
			    {
			      	path: 'guanYu',
				    name: 'guanYu',
				    component: GuanYu,
			    },
			    {
			    	path: 'mineReset',
				    name: 'mineReset',
				    component: MineReset,
				    redirect:"mineReset/resetIndex",
				    children:[
				      {
				      	path: 'resetIndex',
					    name: 'resetIndex',
					    component:ResetIndex,
				      },
				      {
				      	path: 'recompose',
					    name: 'recompose',
					    component:Recompose,
				      },
				      {
				      	path: 'bound',
					    name: 'bound',
					    component:Bound,
				      }
				      
				    ]
			    }
			    
		      ]
	      }
      ]
    }
  ]
})
